from django.http import HttpResponse
from django.shortcuts import render

# Create your views here.
from HomeApp.models import AxfWheel, AxfNav, AxfMustBuy, AxfMainShow


def index(request):
    return HttpResponse('爱就马上行动')


def home(request):
    wheels = AxfWheel.objects.all()
    navs = AxfNav.objects.all()
    mustbuys = AxfMustBuy.objects.all()
    mainshows = AxfMainShow.objects.all()

    return render(request, 'AXF/main/home/home.html', context=locals())